package com.rnkrsoft.suyan.config.server.config.dao;

import com.rnkrsoft.framework.orm.Pagination;
import com.rnkrsoft.framework.orm.jdbc.JdbcMapper;
import com.rnkrsoft.suyan.config.server.config.bo.ListEnvironmentInfoByProjectBO;
import com.rnkrsoft.suyan.config.server.config.bo.QueryEnvironmentInfoBO;
import com.rnkrsoft.suyan.config.server.config.entity.EnvironmentInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by woate on 2018/6/17.
 */
public interface EnvironmentInfoDAO extends JdbcMapper<EnvironmentInfoEntity, String>{
    List<ListEnvironmentInfoByProjectBO> listEnvironmentByProject(@Param("projectId") String projectId);
    Pagination<QueryEnvironmentInfoBO> selectEnvironmentPage(Pagination<QueryEnvironmentInfoBO> pagination);
    List<EnvironmentInfoEntity> selectDependencyEnvironment(@Param("versionId") String versionId, @Param("version") String version, @Param("environmentName") String environmentName);
}
